'use strict'
module.exports = (sequelize, DataTypes) => {
  const Userinfo = sequelize.define(
    'Userinfo',
    {
      // id: DataTypes.NTEGER,
      userid: DataTypes.INTEGER,
      img_url: DataTypes.STRING,
      car_license: DataTypes.STRING,
      car_color: DataTypes.STRING,
      car_info: DataTypes.STRING,
    },
    {}
  )
  Userinfo.associate = function (models) {
    // associations can be defined here
    // UserInfo.hasOne(models.User)
    Userinfo.belongsTo(models.User)
  }
  return Userinfo
}
